namespace CSharpPro._1021;

public class Demo
{
    public  void TestPrint()
    {
        Father father1 = new Father();
        father1.Print();
        Child child = new Child();
        child.Print();
        Console.Write(Child.id);
        Father father2= new Child();
        father2.Print();
        Father father3 = new Son();
        father3.Print();
        Console.WriteLine("-----------------------");
        Father father4 = new Father();
        father4.Print();
        Son son = new Son();
        son.Print();
        int int32 = Convert.ToInt32("123");
        Student student = new Student();
        student.Id = 1;
        student.Name = "张三";
        student.UserEmail = "32432400";
        Console.WriteLine(student);
        Student student1 = new Student(2, "林彪","32432400");
        Console.WriteLine(student1);
        Student student2 = new Student(2,"江青");
        Console.WriteLine(student2);
    }

    public int Compare(int a, int b, int c)
    {
        if (a > b && a > c)
        {
            return a;
        }

        else if (b > a && b > c)
        {
            return b;
        }

        else if (c > a && c > b)
        {
            return c;
        }
        else
        {
            return 0;
        }
    }
}